﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MovieAdd.aspx.cs" Inherits="MovieAdd" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        html
        {
            overflow-x: hidden;
        }
        </style>
    <link href="../../Content/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet"
        type="text/css" />
    <link href="../../Content/base.css" rel="stylesheet" type="text/css" />
    <script src="../../Content/js/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="../../Content/js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
    <link href="../../Content/Style.css" rel="stylesheet" type="text/css" />
    <script src="../../Content/js/ljq.lib.js" type="text/javascript"></script>
    <script src="../../Content/js/Ajax/ajax-progress-upload.js" type="text/javascript"></script>
    <script src="../../Content/js/Ajax/GuidGet.js" type="text/javascript"></script>
    <script src="../../Content/js/ljq.lib.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#txt_CbeginDate").datepicker();
//            if ("<%=Id %>" != "0") {
//                $("#txt_movieName").val("<%=info.MoveName %>");
//                formatSeconds("<%=info.TimeLength %>")
//            }
            //格式化秒数为时分秒
            function formatSeconds(seconds) {
                if (eval(seconds) > 0) {
                    var minutes = Math.floor(seconds / 60);
                    seconds = seconds - minutes * 60;
                    $("#drp_minuite").val(minutes);
                    $("#drp_second").val(seconds);
                }
                return seconds;
            }
        })  
    </script>
</head>
<body>
    <div id="upload_demo" >
        <form action="MovieAdd.aspx" id="from_upload" enctype="multipart/form-data" method="post"
        target="upload_hidden_iframe">
        <%--<input id="id" name="id" value="<%=Id%>" type="hidden" />--%>
        <input id="guid" name="guid" value="" type="hidden" />
        <table style="width:100%">
        <tr>
        <td>影片名称</td><td><input type="text" name="txt_movieName" id="txt_movieName" /></td>
        </tr>
        <tr>
        <td>影片时长</td>
        <td>
        <select name="drp_minuite" id="drp_minuite">
        <option value="0">0</option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
        <option value="10">10</option>
        </select>分
        <select name="drp_second" id="drp_second">
        <option value="0">0</option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="13">13</option>
        <option value="14">14</option>
        <option value="15">15</option>
        <option value="16">16</option>
        <option value="17">17</option>
        <option value="18">18</option>
        <option value="19">19</option>
        <option value="20">20</option>
         <option value="21">21</option>
        <option value="22">22</option>
        <option value="23">23</option>
        <option value="24">24</option>
        <option value="25">25</option>
        <option value="26">26</option>
        <option value="27">27</option>
        <option value="28">28</option>
        <option value="29">29</option>
        <option value="30">30</option>
         <option value="31">31</option>
        <option value="32">32</option>
        <option value="33">33</option>
        <option value="34">34</option>
        <option value="35">35</option>
        <option value="36">36</option>
        <option value="37">37</option>
        <option value="38">38</option>
        <option value="39">39</option>
        <option value="40">40</option>
         <option value="41">41</option>
        <option value="42">42</option>
        <option value="43">43</option>
        <option value="44">44</option>
        <option value="45">45</option>
        <option value="46">46</option>
        <option value="47">47</option>
        <option value="48">48</option>
        <option value="49">49</option>
        <option value="50">50</option>
         <option value="51">51</option>
        <option value="52">52</option>
        <option value="53">53</option>
        <option value="54">54</option>
        <option value="55">55</option>
        <option value="56">56</option>
        <option value="57">57</option>
        <option value="58">58</option>
        <option value="59">59</option>
        </select>秒
        </td>
        </tr>
        <tr>
        <td>文件地址</td>
        <td><input name="upload_file" id="upload_file"  type="file" /></td>
        </tr>
        </table>
        <input type="submit" value="上传文件并保存" />
        <input type="button" onclick="javascript:window.location.href='moviemanage.aspx'" value="取消返回" />
        </form>
    </div>
    <div id="back_panel">
    </div>
    <div id="upload_panel">
        <div id="upload_title">
            文件上传</div>
        <div id="upload_content">
            <ul>
                <li id="finished_percent">正在准备上传...</li>
                <li>
                    <div id="upload_bar">
                        <div id="upload_progress">
                        </div>
                    </div>
                </li>
                <li id="upload_speed"></li>
                <li id="upload_costTime"></li>
                <li id="upload_fileSize"></li>
                <li id="upload_fileName"></li>
            </ul>
            <div id="upload_detail">
            </div>
            <div id="upload_choose">
                <span id="upload_cancel">取消</span><span id="upload_submit">确定</span>
            </div>
        </div>
    </div>
    <iframe name="upload_hidden_iframe" style="display: none;"></iframe>
</body>
</html>
